﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using ReceiptPrint.Models;


namespace ReceiptPrint.ViewModels.TemplateVMs
{
    public partial class TemplateTemplateVM : BaseTemplateVM
    {
        [Display(Name = "名称")]
        public ExcelPropety Name_Excel = ExcelPropety.CreateProperty<Template>(x => x.Name);
        [Display(Name = "标题")]
        public ExcelPropety Header_Excel = ExcelPropety.CreateProperty<Template>(x => x.Header);
        [Display(Name = "子标题")]
        public ExcelPropety SubHeader_Excel = ExcelPropety.CreateProperty<Template>(x => x.SubHeader);
        [Display(Name = "注脚")]
        public ExcelPropety Footer_Excel = ExcelPropety.CreateProperty<Template>(x => x.Footer);

	    protected override void InitVM()
        {
        }

    }

    public class TemplateImportVM : BaseImportVM<TemplateTemplateVM, Template>
    {

    }

}
